package YAPserver.behaviours;

import YAPserver.gameObjects.AbstractBall;
import YAPserver.logic.Output;
import YAPserver.logic.Player;

/**
 * This interface defines the the player's behaviour when there is a collision
 * @author Daniel
 *
 */
public interface CollideBehaviour {
	/**
	 * Changes various player attributes such as lives when a collision occurs.
	 * @param player player who is affected
	 * @param ball ballAbstract that hit either a player's wall or slider
	 * @param out output for sending message to activate the bounce sound
	 */
	public void collide(Player player, AbstractBall ball, Output out);
}